-- option("tools")
--     set_default(false)
--     set_showmenu(true)
   --- add_files("tool/*.cpp")

option("clapack")
   set_default(false)
   set_showmenu(true)
   add_defines("LIBCELL_USING_CLAPACK")  
   
    

target("libcell")
   set_kind("static")
   set_targetdir("../temp_libs")
   add_files("Mesh/*.c","Mesh/*.cpp","Mesh_IO/*.cpp","tool/*.cpp","tool/*.c","Algorithm/*.cpp","Algorithm/*.c")
    ---add_files("tool/*.cpp")
   add_includedirs("../include","../thirdpart/cstructures/include","../thirdpart/lbmath/include","../thirdpart")
   add_options("clapack")
   if has_config("clapack") then
      add_files("../thirdpart/clapack/include/*.c")
   end 
   add_files("../thirdpart/clapack/include/*.c")

   if is_plat("linux") then 
      add_cflags("-O3 -fPIC")
      add_cxflags("-O3 -fPIC")
   elseif is_plat("mingw") then 
      add_cflags("-O3 -fPIC")
      add_cxflags("-O3 -fPIC")
   else
      add_cflags("/MD /O2")
      add_cxflags("/MD /O2")
   end
